<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <button @click="greet">click Me</button>
    <div @click="greet">Other</div>
</div>

<script>
    const vueOpt = {
        data(){
            return {

            }
        },
        methods:{
            greet(event){
                alert(event.target.tagName);
            }
        }
    }

    Vue.createApp(vueOpt).mount('#app');
</script>
</body>
</html>
